# wx目录的meson.build文件

message('开始构建wx驱动库')
# 添加源文件
wx_interface_inc = include_directories('.')

wx_sources = files('wx_abi.cpp', 'wx_card.cpp', 'wx_port.cpp')

# 首先构建interface子目录
include_dirs += include_directories('../../chip')
include_dirs += include_directories('../../internal')

subdir('interface')

# 创建共享库
libwx = shared_library(
    'wx',
    wx_sources,
    include_directories: include_dirs + wx_interface_inc,
    name_prefix: 'lib',
    install: true,
    install_dir: drivers_install_dir,
    dependencies: [dev_deps, libncsi_over_mctp_dep, libmctp_dep, libimu_dep],
)

message('wx驱动库构建完成')